package com.dongdongshop.dao.seller_jpa;

import com.dongdongshop.pojo.seller.TbSeller;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
public interface SellerJpaDao extends JpaRepository<TbSeller,String> {
    @Query(value = "from TbSeller where sellerId = ?1")
    TbSeller getSeller(String sellerId);

    public List<TbSeller> getAllByStatusNot(String status);
}
